import request from '@/utils/request'

const api_name = '/admin'

export default {
    login(number, password) {
        return request({
            url: `${api_name}/login`,
            method: 'post',
            data: {
                number,
                password
            }
        })
    },
    updatePassword(map) {
        return request({
            url: `${api_name}/updatePassword`,
            method: 'put',
            data: map
        })
    },
}
